<extend name="Layout/application"/>

<block name="content">
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>修改密码</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading">修改密码</div>

                        <div class="panel-body">
                            <form class="form-horizontal" role="form" method="post" action="{{:U('System/change')}}">
                                <input type="hidden" name="id" value="{{$user.id}}">
                                <div class="form-group">
                                    <label for="email" class="col-sm-2 control-label" >电子邮件</label>
                                    <div class="col-sm-10">
                                        <input type="email" class="form-control" name="email" id="email" placeholder="请输入电子邮件" value="{{$user.email}}" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="old_password" class="col-sm-2 control-label">原始密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" class="form-control" name="old_password" id="old_password" placeholder="请输入密码">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="password" class="col-sm-2 control-label">新密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" class="form-control" name="password" id="password" placeholder="请输入新密码">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="check_password" class="col-sm-2 control-label">确认密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" class="form-control" name="check_password" id="check_password" placeholder="请确认新密码">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-default">修 改</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>



            </div>
        </div>
    </div>
</block>